QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    CGXBitmap.cpp \
    camerathread.cpp \
    main.cpp \
    mainwindow.cpp \
    mat2qtformatmethod.cpp \
    myimageview.cpp

HEADERS += \
    CGXBitmap.h \
    camerathread.h \
    mainwindow.h \
    mat2qtformatmethod.h \
    my_cv_imread.h \
    myimageview.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

unix|win32: LIBS += -L$$PWD/lib/x64/ -lGxIAPICPPEx

INCLUDEPATH += $$PWD/inc
DEPENDPATH += $$PWD/inc

#OpenCV库

#unix|win32: LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/cudabuild/install/x64/vc17/lib/ -lopencv_core460
#LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/cudabuild/install/x64/vc17/lib/ -lopencv_highgui460
#LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/cudabuild/install/x64/vc17/lib/ -lopencv_imgcodecs460

INCLUDEPATH += $$PWD/../../../../xindeopencvceshi/opencv/cudabuild/install/include
DEPENDPATH += $$PWD/../../../../xindeopencvceshi/opencv/cudabuild/install/include

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/build/x64/vc15/lib/ -lopencv_world460
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/build/x64/vc15/lib/ -lopencv_world460d
else:unix: LIBS += -L$$PWD/../../../../xindeopencvceshi/opencv/build/x64/vc15/lib/ -lopencv_world460

INCLUDEPATH += $$PWD/../../../../xindeopencvceshi/opencv/build/include/opencv2
DEPENDPATH += $$PWD/../../../../xindeopencvceshi/opencv/build/include/opencv2
